﻿@{
	ViewBag.Title = "Donut Chart Sample";

	// ***
	// *** Default values for all charts. Note the colors are taken from the
	// *** bootstrap theme file (variables.less)
	// ***
	string[] colors = new string[] { "#2A9FD6", "#77B300", "#FF8800", "#CC0000", "#9933CC" };
}
<div class="row">
    <div class="col-md-4">
        <h2>Sample Chart from Entity Query</h2>
    </div>
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-success">
				<div class="panel-heading">
					@Html.FontAwesome(FontAwesomeIconSet.Book.Large2x())
					Category Summary
				</div>
				<div class="panel-body">
					@Html.MorrisChart(new RazorDonutChart("categorySummary")
					{
						DataUrl = this.Url.Action("CategorySummary", "Home"),
						Colors = colors,
						Formatter = new PrependFormatter("Count = "),
						LabelColor = "#BBBBBB"
					})
				</div>
			</div>
		</div>
	</div>
</div>